package com.day11.java;

public interface Fly {
    public void flying();
}
class Bied implements Fly {
    @Override
    public void flying() {
        System.out.println("鸟儿在飞");
    }


    public static void main(String[] args) {
        Fly fly = new Fly() {
            @Override
            public void flying() {
                System.out.println("i can fly");
            }
        };
        fly.flying();
    }
}
